﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace SampleWorkflow
{
    partial class Workflow
    {
        #region Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding1 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding3 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding4 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind5 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding5 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding6 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind6 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding7 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind7 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding8 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind8 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding9 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.ComponentModel.ActivityBind activitybind9 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding10 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind10 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding11 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind11 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding12 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            this.stopWorkflowInput = new System.Workflow.Activities.WebServiceInputActivity();
            this.GetStatusOutput = new System.Workflow.Activities.WebServiceOutputActivity();
            this.GetStatusInput = new System.Workflow.Activities.WebServiceInputActivity();
            this.ChangeStatusOutput = new System.Workflow.Activities.WebServiceOutputActivity();
            this.codeSetStatus = new System.Workflow.Activities.CodeActivity();
            this.ChangeStatusInput = new System.Workflow.Activities.WebServiceInputActivity();
            this.eventDrivenActivity3 = new System.Workflow.Activities.EventDrivenActivity();
            this.eventDrivenActivity2 = new System.Workflow.Activities.EventDrivenActivity();
            this.eventDrivenActivity1 = new System.Workflow.Activities.EventDrivenActivity();
            this.Processes = new System.Workflow.Activities.ListenActivity();
            this.ProcessRequest = new System.Workflow.Activities.WhileActivity();
            this.StopWorkflow = new System.Workflow.Activities.IfElseBranchActivity();
            this.ProcessWorkflow = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseActivity1 = new System.Workflow.Activities.IfElseActivity();
            this.StartWorkflowOutputActivity = new System.Workflow.Activities.WebServiceOutputActivity();
            this.StartWorkflowActivity = new System.Workflow.Activities.WebServiceInputActivity();
            // 
            // stopWorkflowInput
            // 
            this.stopWorkflowInput.InterfaceType = typeof(SampleWorkflow.ISampleRequest);
            this.stopWorkflowInput.MethodName = "StopWorkflow";
            this.stopWorkflowInput.Name = "stopWorkflowInput";
            activitybind1.Name = "Workflow";
            activitybind1.Path = "Password";
            workflowparameterbinding1.ParameterName = "Password";
            workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            activitybind2.Name = "Workflow";
            activitybind2.Path = "UserName";
            workflowparameterbinding2.ParameterName = "UserName";
            workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.stopWorkflowInput.ParameterBindings.Add(workflowparameterbinding1);
            this.stopWorkflowInput.ParameterBindings.Add(workflowparameterbinding2);
            this.stopWorkflowInput.InputReceived += new System.EventHandler(this.SetisTimeToStop);
            // 
            // GetStatusOutput
            // 
            this.GetStatusOutput.InputActivityName = "GetStatusInput";
            this.GetStatusOutput.Name = "GetStatusOutput";
            activitybind3.Name = "Workflow";
            activitybind3.Path = "Status";
            workflowparameterbinding3.ParameterName = "(ReturnValue)";
            workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            this.GetStatusOutput.ParameterBindings.Add(workflowparameterbinding3);
            // 
            // GetStatusInput
            // 
            this.GetStatusInput.InterfaceType = typeof(SampleWorkflow.ISampleRequest);
            this.GetStatusInput.MethodName = "GetStatus";
            this.GetStatusInput.Name = "GetStatusInput";
            activitybind4.Name = "Workflow";
            activitybind4.Path = "Password";
            workflowparameterbinding4.ParameterName = "Password";
            workflowparameterbinding4.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            activitybind5.Name = "Workflow";
            activitybind5.Path = "UserName";
            workflowparameterbinding5.ParameterName = "UserName";
            workflowparameterbinding5.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            this.GetStatusInput.ParameterBindings.Add(workflowparameterbinding4);
            this.GetStatusInput.ParameterBindings.Add(workflowparameterbinding5);
            // 
            // ChangeStatusOutput
            // 
            this.ChangeStatusOutput.InputActivityName = "ChangeStatusInput";
            this.ChangeStatusOutput.Name = "ChangeStatusOutput";
            workflowparameterbinding6.ParameterName = "(ReturnValue)";
            workflowparameterbinding6.Value = true;
            this.ChangeStatusOutput.ParameterBindings.Add(workflowparameterbinding6);
            // 
            // codeSetStatus
            // 
            this.codeSetStatus.Name = "codeSetStatus";
            this.codeSetStatus.ExecuteCode += new System.EventHandler(this.SetStatus);
            // 
            // ChangeStatusInput
            // 
            this.ChangeStatusInput.InterfaceType = typeof(SampleWorkflow.ISampleRequest);
            this.ChangeStatusInput.MethodName = "ChangeStatus";
            this.ChangeStatusInput.Name = "ChangeStatusInput";
            activitybind6.Name = "Workflow";
            activitybind6.Path = "TmpStatus";
            workflowparameterbinding7.ParameterName = "NewStatus";
            workflowparameterbinding7.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            activitybind7.Name = "Workflow";
            activitybind7.Path = "Password";
            workflowparameterbinding8.ParameterName = "Password";
            workflowparameterbinding8.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
            activitybind8.Name = "Workflow";
            activitybind8.Path = "UserName";
            workflowparameterbinding9.ParameterName = "UserName";
            workflowparameterbinding9.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
            this.ChangeStatusInput.ParameterBindings.Add(workflowparameterbinding7);
            this.ChangeStatusInput.ParameterBindings.Add(workflowparameterbinding8);
            this.ChangeStatusInput.ParameterBindings.Add(workflowparameterbinding9);
            // 
            // eventDrivenActivity3
            // 
            this.eventDrivenActivity3.Activities.Add(this.stopWorkflowInput);
            this.eventDrivenActivity3.Name = "eventDrivenActivity3";
            // 
            // eventDrivenActivity2
            // 
            this.eventDrivenActivity2.Activities.Add(this.GetStatusInput);
            this.eventDrivenActivity2.Activities.Add(this.GetStatusOutput);
            this.eventDrivenActivity2.Name = "eventDrivenActivity2";
            // 
            // eventDrivenActivity1
            // 
            this.eventDrivenActivity1.Activities.Add(this.ChangeStatusInput);
            this.eventDrivenActivity1.Activities.Add(this.codeSetStatus);
            this.eventDrivenActivity1.Activities.Add(this.ChangeStatusOutput);
            this.eventDrivenActivity1.Name = "eventDrivenActivity1";
            // 
            // Processes
            // 
            this.Processes.Activities.Add(this.eventDrivenActivity1);
            this.Processes.Activities.Add(this.eventDrivenActivity2);
            this.Processes.Activities.Add(this.eventDrivenActivity3);
            this.Processes.Name = "Processes";
            // 
            // ProcessRequest
            // 
            this.ProcessRequest.Activities.Add(this.Processes);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CheckIsTimeToStop);
            this.ProcessRequest.Condition = codecondition1;
            this.ProcessRequest.Name = "ProcessRequest";
            // 
            // StopWorkflow
            // 
            this.StopWorkflow.Name = "StopWorkflow";
            // 
            // ProcessWorkflow
            // 
            this.ProcessWorkflow.Activities.Add(this.ProcessRequest);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CheckAuthentication);
            this.ProcessWorkflow.Condition = codecondition2;
            this.ProcessWorkflow.Name = "ProcessWorkflow";
            // 
            // ifElseActivity1
            // 
            this.ifElseActivity1.Activities.Add(this.ProcessWorkflow);
            this.ifElseActivity1.Activities.Add(this.StopWorkflow);
            this.ifElseActivity1.Description = "Decide if Workflow will execute";
            this.ifElseActivity1.Name = "ifElseActivity1";
            // 
            // StartWorkflowOutputActivity
            // 
            this.StartWorkflowOutputActivity.InputActivityName = "StartWorkflowActivity";
            this.StartWorkflowOutputActivity.Name = "StartWorkflowOutputActivity";
            activitybind9.Name = "Workflow";
            activitybind9.Path = "WorkflowInstanceID";
            workflowparameterbinding10.ParameterName = "(ReturnValue)";
            workflowparameterbinding10.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
            this.StartWorkflowOutputActivity.ParameterBindings.Add(workflowparameterbinding10);
            this.StartWorkflowOutputActivity.SendingOutput += new System.EventHandler(this.SetWorkflowInstanceId);
            // 
            // StartWorkflowActivity
            // 
            this.StartWorkflowActivity.InterfaceType = typeof(SampleWorkflow.ISampleRequest);
            this.StartWorkflowActivity.IsActivating = true;
            this.StartWorkflowActivity.MethodName = "StartWorkflow";
            this.StartWorkflowActivity.Name = "StartWorkflowActivity";
            activitybind10.Name = "Workflow";
            activitybind10.Path = "Password";
            workflowparameterbinding11.ParameterName = "Password";
            workflowparameterbinding11.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
            activitybind11.Name = "Workflow";
            activitybind11.Path = "UserName";
            workflowparameterbinding12.ParameterName = "UserName";
            workflowparameterbinding12.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
            this.StartWorkflowActivity.ParameterBindings.Add(workflowparameterbinding11);
            this.StartWorkflowActivity.ParameterBindings.Add(workflowparameterbinding12);
            // 
            // Workflow
            // 
            this.Activities.Add(this.StartWorkflowActivity);
            this.Activities.Add(this.StartWorkflowOutputActivity);
            this.Activities.Add(this.ifElseActivity1);
            this.Name = "Workflow";
            this.CanModifyActivities = false;

        }

        #endregion

        private WebServiceInputActivity StartVacationRequest;
        private WebServiceOutputActivity StartWorkflowOutputActivity;
        private WebServiceInputActivity StartWorkflowActivity;
        private IfElseBranchActivity StopWorkflow;
        private IfElseBranchActivity ProcessWorkflow;
        private IfElseActivity ifElseActivity1;
        private CodeActivity codeSetStatus;
        private WebServiceInputActivity stopWorkflowInput;
        private WebServiceOutputActivity GetStatusOutput;
        private WebServiceInputActivity GetStatusInput;
        private WebServiceOutputActivity ChangeStatusOutput;
        private WebServiceInputActivity ChangeStatusInput;
        private EventDrivenActivity eventDrivenActivity3;
        private EventDrivenActivity eventDrivenActivity2;
        private EventDrivenActivity eventDrivenActivity1;
        private ListenActivity Processes;
        private WhileActivity ProcessRequest;

    }
}
